STEP 11: Let's welcome the user to the moon!

  • Click on . Drag out Say. Drop it INSIDE your else block.
  • Change the text from "I am sprite." to "OK! The moon's closer anyway."
  • Go to and drag in Set Gravity INSIDE your else block.
  • Click Run and give an answer other than “yes”. This will cause the else block to run.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)